package model;


import java.util.List;

import javax.persistence.*;

import play.db.ebean.*;


@Entity
@Table(name = "stop")
public class Stop extends Model {

	@Id
	public String stop_id;
	public String stop_code;
	public String stop_name;
	public String stop_desc;
	public String stop_lat;
	public String stop_lon;
	public String zone_Id;
	
	@OneToMany(mappedBy = "stop", cascade = CascadeType.ALL)
	public List<StopTimes> StopTimes;
	
    public static Finder<String,Stop> find = new Finder<String,Stop>(String.class, Stop.class); 
}
